struct Solution {}

fn main() {}

impl Solution {
    pub fn num_jewels_in_stones(jewels: String, stones: String) -> i32 {
        stones.chars().filter(|&x| jewels.contains(&(x.to_string()))).count() as i32
    }
}
